<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 

<script>document.write("<link   rel='stylesheet'   type='text/css'   href='css/list"+localStorage.theme+".css'>")</script>
<script src="js/common.js" language="JavaScript" type="text/javascript"></script>
<script>
var listName = new Array();
listName[0]='statuses/friends_timeline'//首页
listName[1]='statuses/mentions';//@我
listName[2]='statuses/comments_timeline';//评论
listName[3]='statuses/followers';//粉丝
listName[4]='direct_messages'//私信
listName[5]='favorites';//收藏
listName[6]='statuses/user_timeline';//其它
function  selectedLi(id)
{
 var lis=tabnav.getElementsByTagName("li");
 for(var i=0;i<lis.length;i++)
    {	  
      lis[i].getElementsByTagName("a")[0].className="";
    }
lis[id-1].getElementsByTagName("a")[0].className="here";
}
function listView(urlName)
{ 
 localStorage.pageNo=1;
 localStorage.currentListUrlName=urlName;  

 listcontext.window.list();
}  
function nextPage()
{   
	localStorage.pageNo++; 
    listcontext.window.list();  
}
function forwardPage()
{  
  if( localStorage.pageNo!=1)
  {
 
   localStorage.pageNo--;
   listcontext.window.list();  
  }
}
function home()
{
 
localStorage.pageNo=1;
listcontext.window.list();
}

function search()
{
}

function viewMenu()
{
   if(localStorage.unfeed=='true'&&localStorage.newFeedCount>0) document.all.feedCount.innerHTML="["+localStorage.newFeedCount+"]" ;
  else  
       if(localStorage.newFeedCount>0)
	      document.all.feedCount.innerHTML="[+]";
	   else
          document.all.feedCount.innerHTML="";
   if(localStorage.unfollow=='true'&&localStorage.newAtmeCount>0) document.all.atmeCount.innerHTML="["+localStorage.newAtmeCount+"]";
  else document.all.atmeCount.innerHTML="";
  if(localStorage.uncomment=='true'&&localStorage.newReplyCount>0)document.all.commentCount.innerHTML="["+localStorage.newReplyCount+"]";
    else document.all.commentCount.innerHTML="";
  if(localStorage.unfans=='true'&&localStorage.newFansCount>0)document.all.fansCount.innerHTML="["+localStorage.newFansCount+"]";
    else document.all.fansCount.innerHTML="";
  if(localStorage.unmessage=='true'&&localStorage.newMsgCount>0)document.all.msgCount.innerHTML="["+localStorage.newMsgCount+"]";
    else document.all.msgCount.innerHTML="";
}
function refresh()
{
  viewMenu(); 
}

function init()
{  
for(var i=0;i<listName.length;i++)
if( localStorage.currentListUrlName.indexOf(listName[i])>=0)
  selectedLi(i+1);
viewMenu();  
document.all.listcontext.src='listcontext.html'; 
//动态修改字体 
modifyCssStyle('#tabnav','fontSize',localStorage.fontSize); 
modifyCssStyle('#tabnav','fontFamily',localStorage.fontFamily); 
}

function upOrDown(obj,imgObj)
{
  if(obj.style.display=='')
  {
   obj.style.display='none';
   document.all.listcontext.height=528; 
    imgObj.src='img/down.png' ;
  }
  else
   {
   obj.style.display='';
   document.all.listcontext.height=450;    
    imgObj.src='img/up.png';
   }
}



var id=window.setInterval(refresh,1*10*1000);//1分钟循环
</script>

<body onload='init()'>
 
 
<table width=400 >
<tr><td valign=top> 
<div id="tabnav" > <ul> 
	<li><a href="javascript:selectedLi(1);listView(listName[0]);" class=here  title='右键直接打开网页'
	onmousedown="if(event.button == 2) goPage('http://t.sina.com.cn/'+localStorage.uid);" > 首页 <span id=feedCount class=span1></a></li> 
	<li><a href="javascript:selectedLi(2);listView(listName[1]);"  title='右键直接打开网页'
	 onmousedown="if(event.button == 2) goPage('http://t.sina.com.cn/atme');" > @我 <span id=atmeCount  class=span1></span></a></li> 
	<li><a href="javascript:selectedLi(3);listView(listName[2]);" title='右键直接打开网页' 
	onmousedown="if(event.button == 2) goPage('http://t.sina.com.cn/comments');" > 评论 <span id=commentCount  class=span1></span></a></li> 
	<li><a href="javascript:selectedLi(4);listView(listName[3]);" title='右键直接打开网页' 
	onmousedown="if(event.button == 2) goPage('http://t.sina.com.cn/'+localStorage.uid+'/fans');" > 粉丝 <span id=fansCount  class=span1></span></a></li> 
	<li><a href="javascript:selectedLi(5);listView(listName[4]);" title='右键直接打开网页' 
	onmousedown="if(event.button == 2) goPage('http://t.sina.com.cn/messages');" > 私信 <span id=msgCount  class=span1></span></a></li>
	<li><a href="javascript:selectedLi(6);listView(listName[5]);" title='右键直接打开网页' 
	onmousedown="if(event.button == 2) goPage('http://t.sina.com.cn/favs');" > 收藏 </a></li>
	<li><a href="javascript:selectedLi(7);listView(listName[6]+'/'+localStorage.uid);" title='用户微博列表,右键直接打开网页'
	onmousedown="if(event.button == 2) goPage('http://t.sina.com.cn/'+localStorage.uid+'/profile');" > 微博 </a></li>
</ul> 
</div>
<table width=90% id=listTab ><tr>
<td valign=top width=40><a href='javascript:home();'><img id=homepic title='回首页' src='img/home.png' height=20px onmouseover="this.src='img/homefocus.png'" onmouseout="this.src='img/home.png'"></a></td>
<td valign=top width=40><a href='javascript:forwardPage();'><img id=forwardpic  title='上一页' height=20px src='img/forward.png' onmouseover="this.src='img/forwardfocus.png'" onmouseout="this.src='img/forward.png'"></a></td>
<td valign=top width=40><a href='javascript:nextPage();'><img id=nextpic src='img/next.png' title='下一页'  height=20px onmouseover="this.src='img/nextfocus.png'" onmouseout="this.src='img/next.png'"></a></td>
<td valign=top width=40><a href='javascript:listcontext.window.list();'><img id=homepic title='刷新' src='img/refresh.png' height=20px onmouseover="this.src='img/refreshfocus.png'" onmouseout="this.src='img/refresh.png'"></a></td>
<td valign=top width=40><a href='javascript:void(0);' ><img title='设置' src='img/option.png' height=20px onclick="goPage('options.html');"></a></td> 
<td><img id=processpic src='img/processbar_stop.png' width=100px height=20px></td>
<td align=right><input type=text name=keyword  class=inputtxt size=12></td>
<td valign=bottom align=left><a href="javascript:document.all.keyword.value='功能暂未开放';"><img id=search  title='搜索' src='img/search.png' height=24px onmouseover="this.src='img/searchfocus.png'" onmouseout="this.src='img/search.png'"></a></td>
<td valign=top width=40><a href='javascript:void(0);' ><img title='写微博' src='img/twitter.png' height=20px onclick="listcontext.window.send(localStorage.uid);"></a></td> 
 
</tr></table>
 
<iframe id=listcontext name=listcontext src="" width=400 height=500  frameborder="no" border="0" marginwidth="0" marginheight="0" ></iframe>
 </td></tr></table> 
<script>

</script>
</body>
</html>